package com.woniu.crowd.common;


import com.woniu.result.ResultCode;

public enum CrowdException implements ResultCode {

    CROWD_NON_EXISTENT(3001, "该众筹不存在"),
    CROWD_USER_NON_EXISTENT(3002, "该用户不存在"),
    CROWD_ADDRESS_NON_EXISTENT(3003, "该用户地址不存在"),
    CROWD_EXPIRED(3004, "该众筹已过期"),
    CROWD_GOAL_ACHIEVED(3005, "该众筹已达到目标"),
    CROWD_HAS_NOT_YET(3006, "还没有众筹"),
    CROWD_PRODUCT_NON_EXISTENT(3007, "商品不存在"),
    CROWD_ON_THE_SHELF(3008, "商品已上架"),
    CROWD_ORDER_UNPAID(3009, "该订单未支付");
    private int code;
    private String message;

    private CrowdException(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
